import { store } from "@mall/api-services"
import * as _ from "lodash"
import * as React from "react"

import classes from "./product-attributes.module.scss"

interface ProductAttributesProps {
  attributes: store.ProductAttribute[]
}

export default function ProductAttributes(props: ProductAttributesProps) {
  const { attributes } = props

  console.log(attributes)

  attributes.filter(attribute => _.isUndefined(attribute.namespace))

  return (
    <div className={classes.productAttributes}>

    </div>
  )

}
